    /* 全局变量 */
        :root {
            --primary-color: #4361ee;
            --primary-light: #e6ebff;
            --secondary-color: #6c757d;
            --success-color: #28a745;
            --info-color: #17a2b8;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --dark-color: #343a40;
            --light-color: #f8f9fa;

            --sidebar-bg: #2c3e50;
            --sidebar-hover: #34495e;
            --sidebar-active: #4361ee;
            --content-bg: #f5f7f9;
            --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
            --transition-speed: 0.3s;

            --border-radius: 10px;
            --sidebar-width: 280px;
        }

        body {
            background-color: var(--content-bg);
            padding-top: 56px;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            overflow-x: hidden;
            color: #495057;
            line-height: 1.6;
        }

        .navbar {
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            background: linear-gradient(120deg, #2c3e50, #1a2530) !important;
        }

        .navbar-brand {
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .sidebar {
            height: calc(100vh - 56px);
            position: fixed;
            top: 56px;
            left: 0;
            width: var(--sidebar-width);
            z-index: 1000;
            background: linear-gradient(180deg, var(--sidebar-bg) 0%, #243342 100%);
            color: #fff;
            overflow-y: auto;
            transition: all var(--transition-speed) ease;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.08);
            scrollbar-width: thin;
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .sidebar .nav-link {
            color: rgba(255, 255, 255, .75);
            padding: 0.85rem 1.2rem;
            border-left: 4px solid transparent;
            transition: all 0.25s ease;
            font-size: 0.95rem;
            position: relative;
            display: flex;
            align-items: center;
            border-radius: 0 8px 8px 0;
            margin: 0.15rem 0.75rem;
            width: calc(100% - 1.5rem);
        }

        .sidebar .nav-link:hover,
        .sidebar .nav-link.active {
            color: #fff;
            background-color: var(--sidebar-hover);
            border-left: 4px solid var(--sidebar-active);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateX(5px);
        }

        .sidebar .submenu {
            padding-left: 0;
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--transition-speed) ease-out;
            background-color: rgba(0, 0, 0, 0.15);
            border-radius: 0 0 8px 8px;
            margin: 0 0.75rem;
            width: calc(100% - 1.5rem);
        }

        .sidebar .menu-item.active .submenu {
            max-height: 1000px;
        }

        .sidebar .submenu .nav-link {
            padding-left: 3rem;
            font-size: 0.9rem;
            border-left: none;
            margin: 0.1rem 0;
            width: 100%;
            border-radius: 6px;
        }

        .sidebar .submenu .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.08);
            transform: translateX(3px);
        }

        .sidebar .menu-toggle {
            transition: transform var(--transition-speed);
            font-size: 0.8rem;
        }

        .sidebar .menu-item.active .menu-toggle {
            transform: rotate(90deg);
        }

        .main-content {
            margin-left: var(--sidebar-width);
            padding: 25px;
            transition: margin-left var(--transition-speed) ease;
            min-height: calc(100vh - 56px);
            position: relative;
        }

        .main-content.collapsed {
            margin-left: 0;
        }

        .stat-card {
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            border: none;
            transition: transform 0.3s, box-shadow 0.3s;
            background: #fff;
            overflow: hidden;
            position: relative;
            z-index: 1;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--info-color));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
            z-index: 2;
        }

        .stat-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--card-shadow-hover);
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .table-responsive {
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--card-shadow);
            background: #fff;
        }

        .table th {
            border-top: none;
            background-color: #f8f9fa;
            font-weight: 600;
            padding: 1rem;
            color: #495057;
            border-bottom: 1px solid #e9ecef;
        }

        .table td {
            padding: 1rem;
            vertical-align: middle;
        }

        .table-hover tbody tr:hover {
            background-color: rgba(67, 97, 238, 0.05);
        }

        .log-item {
            border-left: 4px solid;
            padding: 15px 20px;
            margin-bottom: 15px;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .log-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }

        .log-success {
            border-color: var(--success-color);
            background: linear-gradient(to right, rgba(40, 167, 69, 0.05), #fff);
        }

        .log-failed {
            border-color: var(--danger-color);
            background: linear-gradient(to right, rgba(220, 53, 69, 0.05), #fff);
        }

        .sidebar.collapsed {
            transform: translateX(calc(var(--sidebar-width) * -1));
        }

        .sidebar-header {
            padding: 1.5rem 1.2rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 0.5rem;
        }

        .menu-category {
            margin-top: 1rem;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
            letter-spacing: 1.2px;
            font-weight: 600;
        }

        .menu-toggle-btn {
            position: fixed;
            top: 70px;
            left: var(--sidebar-width);
            z-index: 1001;
            transition: left var(--transition-speed) ease;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            background: var(--sidebar-bg);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .menu-toggle-btn:hover {
            background: var(--sidebar-active);
            transform: scale(1.05);
        }

        .menu-toggle-btn.collapsed {
            left: 0;
        }

        /* 修复图标显示问题 */
        .sidebar .nav-link i {
            width: 22px;
            text-align: center;
            margin-right: 12px;
            flex-shrink: 0;
            font-size: 1.1rem;
        }

        /* 确保企微图标正确显示 */
        .fa-weixin:before {
            content: "\f1d7";
            font-family: "Font Awesome 6 Brands";
            font-weight: 400;
        }

        /* 移动端遮罩 */
        .sidebar-overlay {
            position: fixed;
            top: 56px;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
            backdrop-filter: blur(3px);
        }

        .badge-notification {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 0.65rem;
            padding: 0.25rem 0.5rem;
            border-radius: 10px;
        }

        /* 菜单项统一图标样式 */
        .menu-icon {
            width: 22px;
            text-align: center;
            margin-right: 12px;
            font-size: 1.1rem;
        }

        /* 新增样式 */
        .nav-item {
            margin-bottom: 0.25rem;
        }

        .sidebar-footer {
            padding: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 1rem;
        }

        /* 卡片标题样式 */
        .card-header {
            background: linear-gradient(120deg, #f8f9fa, #e9ecef);
            border-bottom: none;
            font-weight: 600;
            padding: 1rem 1.5rem;
        }

        /* 按钮样式 */
        .btn {
            border-radius: 6px;
            font-weight: 500;
            padding: 0.5rem 1.2rem;
            transition: all 0.2s;
        }

        .btn-primary {
            background: linear-gradient(120deg, var(--primary-color), #5a75ff);
            border: none;
            box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
        }

        /* 表单样式 */
        .form-control {
            border-radius: 6px;
            padding: 0.75rem 1rem;
            border: 1px solid #e1e5eb;
            transition: all 0.3s;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
        }

        /* 警告框样式 */
        .alert {
            border-radius: 8px;
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            padding: 1rem 1.5rem;
        }

        /* 导航栏下拉菜单 */
        .dropdown-menu {
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: none;
            padding: 0.5rem;
        }

        .dropdown-item {
            border-radius: 6px;
            padding: 0.5rem 1rem;
            transition: all 0.2s;
        }

        .dropdown-item:hover {
            background-color: var(--primary-light);
            color: var(--primary-color);
        }

        /* 页面标题 */
        .page-title {
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: #343a40;
            position: relative;
            padding-bottom: 0.75rem;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--info-color));
            border-radius: 3px;
        }

        @media (max-width: 991.98px) {
            .sidebar {
                transform: translateX(calc(var(--sidebar-width) * -1));
            }

            .sidebar.mobile-show {
                transform: translateX(0);
                box-shadow: 8px 0 25px rgba(0, 0, 0, 0.2);
            }

            .main-content {
                margin-left: 0;
                padding: 20px 15px;
            }

            .menu-toggle-btn {
                display: none;
            }

            .sidebar-overlay.mobile-show {
                display: block;
            }

            .stat-card {
                margin-bottom: 1.5rem;
            }
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .main-content > * {
            animation: fadeIn 0.5s ease-out;
        }

        .content-footer {

            padding: 20px 0;
            border-top: 1px solid #e9ecef;            border-top: 1px solid #e9ecef;
            background: linear-gradient(120deg, #2c3e50, #1a2530);
            color: #fff;
            border-radius: var(--border-radius);
            margin-top: 30px;
        }
